const router = require('koa-router')()
let url = 'http://172.25.38.252:3000'

// 宝藏店铺列表
router.get('/likeLis',function (ctx,next){
    ctx.body = [
        {
            title:'店铺名',
            fm:`${url}/goods1.png`
        },
        {
            title:'店铺名',
            fm:`${url}/goods1.png`
        },
        {
            title:'店铺名',
            fm:`${url}/goods1.png`
        }
    ]
})


// 宝藏店铺详情
router.get('/likeLi',function (ctx,next){
    ctx.body = {
        title:{
            title:'店铺名',
            fm:`${url}/goods1.png`
        },
        goods:[
            { title:'购物车商品1', price:70, fm:`${url}/goods1.png`},
            { title:'购物车商品2', price:45,  fm:`${url}/goods2.png`},
            { title:'购物车商品3', price:65, fm:`${url}/goods3.png`},
        ]
    }
})

// 全部分类
router.get('/classIfy',function (ctx,next){
    ctx.body = [
        {
            msg:'上衣',
            code:1,
            fm:`${url}/goods1.png`
        },
        {
            msg:'裙子',
            start:2,
            fm:`${url}/goods1.png`
        },
        {
            msg:'裤子',
            start:3,
            fm:`${url}/goods1.png`
        },
        {
            msg:'鞋子',
            start:4,
            fm:`${url}/goods1.png`
        },{
            msg:'帽子',
            start:5,
            fm:`${url}/goods1.png`
        },{
            msg:'包包',
            start:6,
            fm:`${url}/goods1.png`
        }
    ]
})


module.exports = router




